/*
* @Author: gavin
* @Date:   2017-12-20 13:32:00
* @Last Modified by:   gavin
* @Last Modified time: 2017-12-21 01:05:11
*/
import React from 'react';
import { Switch, Route, Redirect } from 'react-router-dom';

import Main from './main';
import NotFound from './404';
import Login from './login';

const index = (props) => (
	<Switch>
		<Route path="/login" component={Login}/>
		<Route path="/home" component={Main}/>
		<Redirect exact from="/" to="/home" />
		<Route component={NotFound}/>
	</Switch>
);
export default index;
